package com.lmu.travel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lmu.travel.dao.UserDao;
import com.lmu.travel.entity.User;
import com.lmu.travel.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (TabUser)表服务实现类
 *
 * @author liuxuhuang
 * @since 2021-06-27 17:03:54
 */
@Service("UserService")
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {
    @Resource
    private UserDao userdao;

    @Override
    public User loginByEmail(User user) {
        return userdao.loginByEmail(user);
    }

    @Override
    public User loginByPhone(User user) {
        return userdao.loginByPhone(user);
    }
}